<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.doc.Parser</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.doc.Parser";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.doc.Parser.html" class="symbol">dil.doc.Parser</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> very high.</p>
<dl>
<dt class="decl">class <a class="symbol _class" name="IdentValue" href="./htmlsrc/dil.doc.Parser.html#L11" kind="class" beg="11" end="20">IdentValue</a>; <a title="Permalink to this symbol" href="#IdentValue" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L11">#</a></dt>
<dd class="ddef">
<div class="summary">A pair of strings.</div>
<dl>
<dt class="decl">string <a class="symbol _variable" name="IdentValue.ident" href="./htmlsrc/dil.doc.Parser.html#L13" kind="variable" beg="13" end="13">ident</a>; <a title="Permalink to this symbol" href="#IdentValue.ident" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L13">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">string <a class="symbol _variable" name="IdentValue.value" href="./htmlsrc/dil.doc.Parser.html#L14" kind="variable" beg="14" end="14">value</a>; <a title="Permalink to this symbol" href="#IdentValue.value" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L14">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _ctor" name="IdentValue.this" href="./htmlsrc/dil.doc.Parser.html#L15" kind="ctor" beg="15" end="19">this</a><span class="params">(string <em>ident</em>, string <em>value</em>)</span>; <a title="Permalink to this symbol" href="#IdentValue.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L15">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">struct <a class="symbol _struct" name="IdentValueParser" href="./htmlsrc/dil.doc.Parser.html#L28" kind="struct" beg="28" end="121">IdentValueParser</a>; <a title="Permalink to this symbol" href="#IdentValueParser" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L28">#</a></dt>
<dd class="ddef">
<div class="summary">Parses text in the form of:
 <pre>
ident = value
ident2 = value2
         more text
</pre></div>
<dl>
<dt class="decl">char* <a class="symbol _variable" name="IdentValueParser.p" href="./htmlsrc/dil.doc.Parser.html#L30" kind="variable" beg="30" end="30">p</a>; <a title="Permalink to this symbol" href="#IdentValueParser.p" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L30">#</a></dt>
<dd class="ddef">
<div class="summary">Current pointer.</div></dd>
<dt class="decl">char* <a class="symbol _variable" name="IdentValueParser.textEnd" href="./htmlsrc/dil.doc.Parser.html#L31" kind="variable" beg="31" end="31">textEnd</a>; <a title="Permalink to this symbol" href="#IdentValueParser.textEnd" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L31">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">IdentValue[] <a class="symbol _function" name="IdentValueParser.parse" href="./htmlsrc/dil.doc.Parser.html#L35" kind="function" beg="35" end="60">parse</a><span class="params">(string <em>text</em>)</span>; <a title="Permalink to this symbol" href="#IdentValueParser.parse" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L35">#</a></dt>
<dd class="ddef">
<div class="summary">Parses the text into a list of IdentValues.
 All newlines in text must be converted to '\n'.</div></dd>
<dt class="decl">char[] <a class="symbol _function" name="IdentValueParser.textBody" href="./htmlsrc/dil.doc.Parser.html#L64" kind="function" beg="64" end="79">textBody</a><span class="params">(char* <em>begin</em>, char* <em>end</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#IdentValueParser.textBody" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L64">#</a></dt>
<dd class="ddef">
<div class="summary">Strips off leading and trailing whitespace characters.</div>
<p class="sec_header">Returns:</p>the text body, or null if empty.</dd>
<dt class="decl">bool <a class="symbol _function" name="IdentValueParser.findNextIdent" href="./htmlsrc/dil.doc.Parser.html#L86" kind="function" beg="86" end="106">findNextIdent</a><span class="params">(ref string <em>ident</em>, ref char* <em>bodyBegin</em>)</span>; <a title="Permalink to this symbol" href="#IdentValueParser.findNextIdent" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L86">#</a></dt>
<dd class="ddef">
<div class="summary">Finds the next "Identifier =".</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>ident</em></td><td>set to Identifier.</td></tr>
<tr><td><em>bodyBegin</em></td><td>set to the beginning of the text body (whitespace skipped.)</td></tr></table>
<p class="sec_header">Returns:</p>true if found.</dd>
<dt class="decl">void <a class="symbol _function" name="IdentValueParser.skipWhitespace" href="./htmlsrc/dil.doc.Parser.html#L108" kind="function" beg="108" end="112">skipWhitespace</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#IdentValueParser.skipWhitespace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L108">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="IdentValueParser.skipLine" href="./htmlsrc/dil.doc.Parser.html#L114" kind="function" beg="114" end="120">skipLine</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#IdentValueParser.skipLine" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L114">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">char[] <a class="symbol _function" name="makeString" href="./htmlsrc/dil.doc.Parser.html#L124" kind="function" beg="124" end="128">makeString</a><span class="params">(char* <em>begin</em>, char* <em>end</em>)</span>; <a title="Permalink to this symbol" href="#makeString" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L124">#</a></dt>
<dd class="ddef">
<div class="summary">Returns a string slice ranging from begin to end.</div></dd>
<dt class="decl"><a class="symbol _unittest" name="unittest" href="./htmlsrc/dil.doc.Parser.html#L130" kind="unittest" beg="130" end="172">unittest</a>; <a title="Permalink to this symbol" href="#unittest" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.doc.Parser.html#L130">#</a></dt>
<dd class="ddef"></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:59 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>